import {Schema, type} from "@colyseus/schema";

export class GameObject2D extends Schema {

    @type("string")
    id: string = "";

    @type("number")
    x: number = 0;

    @type("number")
    y: number = 0;

    @type("number")
    w: number = 50;

    @type("number")
    h: number = 50;
}

export class GameObject3D extends GameObject2D {

    @type("number")
    z: number = 0;

    @type("number")
    d: number = 0;
}